import {floatToFixed2} from '@/utils'

// 格式化金额【分转元】
// @ts-ignore
export const fenToYuanFormat = (_, __, cellValue: any, ___) => {
  return `￥${floatToFixed2(cellValue)}`
}

// 格式化性别
export const sexFormatter = (row: any) => {
  if (row.sex === 1) {
    return '男'
  }
  if (row.sex === 2) {
    return '女'
  }
  if (row.sex === 0) {
    return '其他'
  }
}
